<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>

<head profile="http://gmpg.org/xfn/11">
	
	<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
	
	<?php if (is_search()) { ?>
	   <meta name="robots" content="noindex, nofollow" /> 
	<?php } ?>

	<title>
		   <?php
		      if (function_exists('is_tag') && is_tag()) {
		         single_tag_title("Tag Archive for &quot;"); echo '&quot; - '; }
		      elseif (is_archive()) {
		         wp_title(''); echo ' Archive - '; }
		      elseif (is_search()) {
		         echo 'Search for &quot;'.wp_specialchars($s).'&quot; - '; }
		      elseif (!(is_404()) && (is_single()) || (is_page())) {
		         wp_title(''); echo ' - '; }
		      elseif (is_404()) {
		         echo 'Not Found - '; }
		      if (is_home()) {
		         bloginfo('name'); echo ' - '; bloginfo('description'); }
		      else {
		          bloginfo('name'); }
		      if ($paged>1) {
		         echo ' - page '. $paged; }
		   ?>
	</title>
	
	<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
	<?php wp_head(); ?>
  
	<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/reset.css" type="text/css" />
	<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/jquery.lightbox-0.5.css" type="text/css" />
	<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/colorbox.css" type="text/css" />
	<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" />
	
	<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  
  <script language="javascript" src="<?php bloginfo('template_url'); ?>/js/jquery.js" type="text/javascript"></script>
  <script language="javascript" src="<?php bloginfo('template_url'); ?>/js/jquery.tweet.js" type="text/javascript"></script>
  <script language="javascript" src="<?php bloginfo('template_url'); ?>/js/jquery.bxSlider.min.js" type="text/javascript"></script>
  <script language="javascript" src="<?php bloginfo('template_url'); ?>/js/jquery.lightbox-0.5.js" type="text/javascript"></script>
  <script language="javascript" src="<?php bloginfo('template_url'); ?>/js/jquery.isotope.min.js" type="text/javascript"></script>
  <script language="javascript" src="<?php bloginfo('template_url'); ?>/js/jquery.colorbox-min.js" type="text/javascript"></script>
  <!--<script language="javascript" src="<?php bloginfo('template_url'); ?>/js/grayscale.js" type="text/javascript"></script>-->
  <script language="javascript" src="<?php bloginfo('template_url'); ?>/js/jquery.imagesloaded.js" type="text/javascript"></script>
  <script language="javascript" src="<?php bloginfo('template_url'); ?>/js/script.js" type="text/javascript"></script>
  
  <script>
		var global = '';
    
    $(document).ready(function(){
      $("#ticker").tweet({
        username: "seaofclouds",
        page: 1,
        count: 20,
        loading_text: "loading ...",
				template: '{avatar}{time}{join}"{text}"',
      }).bind("loaded", function() {
        $('.tweet_list').bxSlider({
          nextText: '',
          prevText: ''
        });
      });
      
      var snippet = $('.footer-menu .snippet');
      snippet.hover(function(){
        if(!snippet.data('bottom')) {
          snippet.data('bottom',$(this).css('bottom'));
        }
      
        $(this).animate({
          bottom: "+=70"
        },'fast');
      }, function(){
        $(this).animate({
          bottom: "-=70"
        });
      });
      
      // headers reposition
      // $('#menu-main-menu li').each(function(){
        // var w = $(this).width();
        // $(this).css('width', (w+10)+'px');
      // });
      
      var img = $('.content .container').imagesLoaded();
      
      img.always(function(){
        $('.content .container').center();
      });
      
      if($('.contact').length > 0){
        // var pos = $('.contact').position();
        // $('.contact').css('top', (pos.top-60)+'px');
      }
      
      if($('.category-portfolio').length > 0){
        // var pos = $('.portfolio .container').position();
        // $('.portfolio .container').css('top', (pos.top-310.5)+'px');
      }
    });
    
    $(window).resize(function(){
      $('.content .container').center();
    });
  </script>

	<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>

	
	
</head>

<body <?php body_class(); ?>>
	
  <div class="header">
    <div class="container">
		<a href="<?php bloginfo('url'); ?>/"><img src="<?php bloginfo('template_url'); ?>/images/logo.png" /></a>
		
		<?php wp_nav_menu(array('menu=Main Menu')); ?>
    </div>
  </div>

  <div class="content">